#include<UAVbyid.hpp>

void UAVbyid::update_vehicle_number(int number)
{
  selfodom_vec.clear();
  selfstate_vec.clear();
  selfodom_vec.resize(number);
  selfstate_vec.resize(number);
}

void UAVbyid::update_drone_state(int id, int state,nav_msgs::Odometry odom)
{
  //id begins from 0
  selfstate_vec[id] = state;
  selfodom_vec[id] = odom;
}